<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body></body>
</html>
<script>
    const regx1 = /[1-9]+/g;
    const regx2 = /[a-c]+/gi;

    const str1 = "01456098710";
    const str2 = "abdcabdabc";
    console.log(str1.match(regx1)); // ['1456', '9871']
    console.log(str2.match(regx2)); // ['ab', 'cab', 'abc']
</script>
